package Practice08.test3;

import java.util.HashSet;
import java.util.Set;

public class TestHashSet {
    public static void main(String[] args) {

        String[] strings = {"abc","de","gong","De","abc","Foo","gong"};
        Set<String> stringSet = new HashSet<>();
        for (String s: strings) {
            stringSet.add(s);
        }
        for (String s: stringSet) {
            System.out.println(s);
        }

    }
}
